package org.jmetrix.samples.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.jmetrix.throughput.ThroughputAspect;

/**
 * @author Konstantin Kuzmin
 * @version $Revision$
 * @since 14.10.12
 */
@Aspect
public class SendInvoiceThroughput extends ThroughputAspect {
    @Around("call (public void org.jmetrix.samples.application.OrderManager.sendInvoice(..))")
    public Object saveOrder(final ProceedingJoinPoint pjp) throws Throwable {
        return super.measure(pjp);
    }
}
